STEP 8: Time to make our next if statement. Remember, conditionals are in the LOGIC tab.

A line of code is outside a code block if it is not indented. Our next if statement should have no spaces in front of it!

  • Go to and drag if to the bottom of your program, OUTSIDE of the first if statement.
  • Change the test variable from choice to rand_answer.
  • Go to and drag out Say. Drop it indented inside of your second if statement.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)